#include <stdio.h>
unsigned int LCM(unsigned int a,unsigned int b)
{
    if(0==a||0==b)
    {
        printf("incorrectly input!please make sure both numbers are larger than zero!");
        exit(0);
    }
    int max;
    max=a>b?a:b;
    for(;;max++)
    {
        if(0==max%a&&0==max%b)
        {
            return max;
        }
    }
}
void main()
{
    unsigned int a,b;
    printf("please input two numbers:");
    scanf("%u,%u",&a,&b);
    printf("The least common multiple is %d",LCM(a,b));
}
